package com.zjhcsoft.auth.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 密码策略表
 * </p>
 *
 * @Author: daiwc
 * @Date: 2021/4/4
 */
@TableName("T_PASSWORD_POLICY")
@KeySequence("mybatisPlusKeyGenerator")
public class PasswordPolicy implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * ID 唯一标识
     */
    @TableId(type=IdType.INPUT)
    private Long id;

    /**
     * 系统唯一标识
     */
    @TableField("APP_ID")
    private Long appId;

    /**
     * 校验类型
     */
    @TableField("POLICY_TYPE")
    private String policyType;

    /**
     * 提示信息
     */
    @TableField("MESSAGE")
    private String message;

    /**
     * 名称
     */
    @TableField("NAME")
    private String name;

    /**
     * 值
     */
    @TableField("VAL")
    private String val;

    /**
     * 校验名称
     */
    @TableField("NAMECN")
    private String namecn;

    /**
     * 单位
     */
    @TableField("UNIT")
    private String unit;

    /**
     * 表达式
     */
    @TableField("EXPRESSION")
    private String expression;

    /**
     * 条件
     */
    @TableField("OPERATOR")
    private String operator;

    /**
     * 新增时间
     */
    @TableField("CREATE_TIME")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("UPDATE_TIME")
    private Date updateTime;

    /**
     * 状态 0正常 1 停用
     */
    @TableField("STATUS_CD")
    private String statusCd;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getAppId() {
        return appId;
    }

    public void setAppId(Long appId) {
        this.appId = appId;
    }

    public String getPolicyType() {
        return policyType;
    }

    public void setPolicyType(String policyType) {
        this.policyType = policyType;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVal() {
        return val;
    }

    public void setVal(String val) {
        this.val = val;
    }

    public String getNamecn() {
        return namecn;
    }

    public void setNamecn(String namecn) {
        this.namecn = namecn;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getExpression() {
        return expression;
    }

    public void setExpression(String expression) {
        this.expression = expression;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getStatusCd() {
        return statusCd;
    }

    public void setStatusCd(String statusCd) {
        this.statusCd = statusCd;
    }

    @Override
    public String toString() {
        return "PasswordPolicy{" +
                "id=" + id +
                ", appId=" + appId +
                ", policyType='" + policyType + '\'' +
                ", message='" + message + '\'' +
                ", name='" + name + '\'' +
                ", val='" + val + '\'' +
                ", namecn=" + namecn +
                ", unit=" + unit +
                ", expression='" + expression + '\'' +
                ", operator='" + operator + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", statusCd=" + statusCd +
                '}';
    }
}
